/*
 * @Author: Leng
 * @Date: 2022-11-04 17:34:19
 * @Description: 加载图标库
 * @FilePath: \vue-leng\src\utils\utilLoad.js
 */

const loadIconfont = () => {
    // 应用图标
    window.$tool.loadScript(`${$config.iconfont}`, null, 'leng-font-js')
    window.$tool.loadCSS(`${$config.iconfont}`, 'leng-font-css')
}

const destructIconfont = () =>{
    const fontJs = document.getElementById('leng-font-js')
    const fontCss = document.getElementById('leng-font-css')
    fontJs && fontJs.remove()
    fontCss && fontCss.remove()
}

export default {
    loadIconfont,
    destructIconfont
}
